package com.hc.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

/**
 * 测试循环依赖
 *
 * @author huangchao E-mail:fengquan8866@163.com
 * @version 创建时间：2024/6/9 10:08
 */
@Service
@Slf4j
public class AaService {

//    @Autowired
    private BbService bbService;

    public AaService(@Lazy BbService bbService) {
        this.bbService = bbService;
        log.info("初始化Aa");
    }
//    public AaService() {
//        log.info("初始化Aa");
//    }

    public String aa() {
        log.info("调用aa");
        return "aa";
    }
}
